/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task06.task0602;

/* 
僵尸猫和僵尸狗
*/

public class Cat {
    public static void main(String[] args) {

    }

    //在此编写你的代码


    @Override
    protected void finalize() throws Throwable {
        System.out.println("一个 Cat 被销毁");
    }
}

class Dog {
    //在此编写你的代码

    @Override
    protected void finalize() throws Throwable {
        System.out.println("一个 Dog 被销毁");
    }
}
